#include <OgreRenderWindow.h>
#include <OgrePrerequisites.h>

#define DLL_EXPORT __declspec(dllexport)

using namespace Ogre;

extern "C" DLL_EXPORT Viewport *call_addViewport(RenderWindow *ptr, void *cam, int ZOrder, float left, float top, float width, float height)
{
    return ptr->addViewport((Camera*)cam, ZOrder, left, top, width, height);
}

extern "C" DLL_EXPORT bool call_isClosed(RenderWindow *ptr)
{
	return ptr->isClosed();
}

extern "C" DLL_EXPORT void call_getCustomAttribute(RenderWindow *ptr, const char *name, void *pData)
{
	ptr->getCustomAttribute(name, pData);
}